﻿using System;
using UDS.Entity;

namespace UDS.Web.UI.Controls
{
    /// <summary>
    /// Allow to choose the importance of an mail.
    /// </summary>
    public class MailImportanceDropDownList : EnumDropDownList
    {
        protected override Type EnumType
        {
            get { return typeof(MailImportance); }
        }

        protected override int DefaultEnumValue
        {
            get { return (int)MailImportance.Normal; }
        }

        /// <summary>
        /// Get or set the selected importance.
        /// </summary>
        public MailImportance SelectedImportance
        {
            get { return (MailImportance)SelectedEnumValue; }
            set { SelectedEnumValue = (int)value; }
        }
    }
}
